package com.csf.project.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.csf.project.service.SecurityService;
import com.csf.project.service.UserService;

@Service
public class SecurityServiceImpl implements SecurityService {

    @Autowired
    private UserService userService;

    private List<String> emptyList = new ArrayList<>();

    @Override
    public List<String> getPermissions(List<String> roleNames) {
        return emptyList;
    }


    @Override
    public void loginSuccess(String account) {
        userService.loginSuccess(account);
    }

}
